// 代理服务器
const express = require('express')
const moment = require('moment')
const app = express()
app.listen(4000, '0.0.0.0')

app.use(express.static('www'))


app.get('/time', (req, res) => {
  res.send({ time: moment().format('YYYY-MM-DD hh:mm:ss'), ip: req.ip });
});
